#ifndef _DevicesADC_H_
#define _DevicesADC_H_



#define ADC_CHANNEL_CURRENT_FILTRATE    0
#define ADC_CHANNEL_CURRENT_DUMP        1
#define ADC_CHANNEL_CURRENT_RENEWAL     2
#define ADC_CHANNEL_CURRENT_PACK        3



/* 每通道采样次数 */
#define ADC0_SAMPLING_NUMBER    16
/* 通道数量 */
#define ADC0_SAMPLING_CHANNEL   4
/* 采样时间 */
#define ADC_SAMPLE_TIME ADC_SAMPLETIME_55POINT5





void vADCInit(void);
void vADC0DMAInit(void);
float fADCGetChannelValue(uint8_t channel, uint32_t uiCnt);
float fADCDMAGetChannelValue(uint8_t ucChannel);

#endif
